package light.head.model;

import java.io.Serializable;

/**
 * @author 简航 E_mail:janhang@126.com
 * @version 创建时间：2008-12-1 
 * 复合主键对象
 */
public class RoleHandlePK implements Serializable {

	private static final long serialVersionUID = -325412438315235800L;
	
	
	private Integer roleCode;
	private String handleCode;
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
            return true;
        }
        if (null == obj) {
            return false;
        }
        if (!(obj instanceof RoleHandlePK)) {
            return false;
        }

        final RoleHandlePK pko = (RoleHandlePK) obj;
        if (!handleCode.equals(pko.getHandleCode())) {
            return false;
        }
        if (null == roleCode || roleCode.intValue() != pko.getRoleCode()) {
            return false;
        }
        return true;
	}
	@Override
	public int hashCode() {
		int result;
        result = roleCode.hashCode();
        result = 29 * result + handleCode.hashCode();
        return result;
	}
	
	
	

	public Integer getRoleCode() {
		return this.roleCode;
	}
	public String getHandleCode() {
		return this.handleCode;
	}
	
	public void setRoleCode(Integer roleCode) {
		this.roleCode = roleCode;
	}
	public void setHandleCode(String handleCode) {
		this.handleCode = handleCode;
	}
}
